package com.juc.cyclicbarrier.cyclicbarrier7;

public class MyThreadB  extends Thread{

	private MyService myService;
	public MyThreadB(MyService myService) {
		super();
		this.myService = myService;
	}
	@Override
	public void run() {
	    myService.testMethod();
	}
}
